﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ReviewList.aspx.cs" Inherits="Viki1.ReviewList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    
    <link href="../Styles/inner-xx.css" rel="stylesheet" type="text/css" />
  
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="bd" class="w989">
<div class="col_l">
          <div class="right-tit"> 学员心声</div>
          <div class="h20"></div>
          <ul class="ul-txt-news">
            
              <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" 
                  DataKeyNames="comment_id,Expr1" GroupItemCount="3" >
                  <AlternatingItemTemplate>
                   <li>
                      <div class="txt">
                 
                  <div class="pic"><a href="?m=content&c=index&a=show&catid=93&id=1253">
                                     <asp:Image
                                          ID="Image1" runat="server" width ="123" Height="88" ImaageUrl='<%#Eval("user_image") %>'/>
                                     </a>
                      <asp:Label ID="user_name" runat="server" Text='<%#Eval("user_nickname") %>' ></asp:Label></div>
                  
                       <h3 class="mb10"><a href="?m=content&c=index&a=show&catid=93&id=1253"><asp:Label ID="comment_title" runat="server"
                               Text='<%#Eval("comment_title") %>'></asp:Label>

</a></h3> 
                          <asp:Label ID="comment_content" runat="server" Text='<%#Eval("comment_content") %>'></asp:Label>
                                            <p class="pt10">
                                                <asp:Label ID="comment_time" runat="server" Text='<%#Eval("comment_time") %>'></asp:Label>					

<!--<a href="" class="share ml20">分享</a>-->
						<!-- Baidu Button BEGIN -->
			
						
						</p>
                  </div>
                  </li>
                  </AlternatingItemTemplate>
                  <EditItemTemplate>
                      <td runat="server" style="background-color: #999999;">
                          comment_id:
                          <asp:Label ID="comment_idLabel1" runat="server" 
                              Text='<%# Eval("comment_id") %>' />
                          <br />user_id:
                          <asp:TextBox ID="user_idTextBox" runat="server" Text='<%# Bind("user_id") %>' />
                          <br />comment_title:
                          <asp:TextBox ID="comment_titleTextBox" runat="server" 
                              Text='<%# Bind("comment_title") %>' />
                          <br />comment_content:
                          <asp:TextBox ID="comment_contentTextBox" runat="server" 
                              Text='<%# Bind("comment_content") %>' />
                          <br />comment_time:
                          <asp:TextBox ID="comment_timeTextBox" runat="server" 
                              Text='<%# Bind("comment_time") %>' />
                          <br />comment_praise:
                          <asp:TextBox ID="comment_praiseTextBox" runat="server" 
                              Text='<%# Bind("comment_praise") %>' />
                          <br />comment_hate:
                          <asp:TextBox ID="comment_hateTextBox" runat="server" 
                              Text='<%# Bind("comment_hate") %>' />
                          <br />Expr1:
                          <asp:Label ID="Expr1Label1" runat="server" Text='<%# Eval("Expr1") %>' />
                          <br />user_image:
                          <asp:TextBox ID="user_imageTextBox" runat="server" 
                              Text='<%# Bind("user_image") %>' />
                          <br />user_nickname:
                          <asp:TextBox ID="user_nicknameTextBox" runat="server" 
                              Text='<%# Bind("user_nickname") %>' />
                          <br />
                          <asp:Button ID="UpdateButton" runat="server" CommandName="Update" Text="更新" />
                          <br />
                          <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="取消" />
                          <br />
                      </td>
                  </EditItemTemplate>
                  <EmptyDataTemplate>
                      <table runat="server" 
                          style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;">
                          <tr>
                              <td>
                                  未返回数据。</td>
                          </tr>
                      </table>
                  </EmptyDataTemplate>
                  <EmptyItemTemplate>
<td runat="server" />
                  </EmptyItemTemplate>
                  <GroupTemplate>
                      <tr ID="itemPlaceholderContainer" runat="server">
                          <td ID="itemPlaceholder" runat="server">
                          </td>
                      </tr>
                  </GroupTemplate>
                  <InsertItemTemplate>
                      <td runat="server" style="">
                          comment_id:
                          <asp:TextBox ID="comment_idTextBox" runat="server" 
                              Text='<%# Bind("comment_id") %>' />
                          <br />user_id:
                          <asp:TextBox ID="user_idTextBox" runat="server" Text='<%# Bind("user_id") %>' />
                          <br />comment_title:
                          <asp:TextBox ID="comment_titleTextBox" runat="server" 
                              Text='<%# Bind("comment_title") %>' />
                          <br />comment_content:
                          <asp:TextBox ID="comment_contentTextBox" runat="server" 
                              Text='<%# Bind("comment_content") %>' />
                          <br />comment_time:
                          <asp:TextBox ID="comment_timeTextBox" runat="server" 
                              Text='<%# Bind("comment_time") %>' />
                          <br />comment_praise:
                          <asp:TextBox ID="comment_praiseTextBox" runat="server" 
                              Text='<%# Bind("comment_praise") %>' />
                          <br />comment_hate:
                          <asp:TextBox ID="comment_hateTextBox" runat="server" 
                              Text='<%# Bind("comment_hate") %>' />
                          <br />Expr1:
                          <asp:TextBox ID="Expr1TextBox" runat="server" Text='<%# Bind("Expr1") %>' />
                          <br />user_image:
                          <asp:TextBox ID="user_imageTextBox" runat="server" 
                              Text='<%# Bind("user_image") %>' />
                          <br />user_nickname:
                          <asp:TextBox ID="user_nicknameTextBox" runat="server" 
                              Text='<%# Bind("user_nickname") %>' />
                          <br />
                          <asp:Button ID="InsertButton" runat="server" CommandName="Insert" Text="插入" />
                          <br />
                          <asp:Button ID="CancelButton" runat="server" CommandName="Cancel" Text="清除" />
                          <br />
                      </td>
                  </InsertItemTemplate>
                  <ItemTemplate>
                  <li style="width:700px">
                      <div class="txt">
                 
                  <div class="pic"><a href="?m=content&c=index&a=show&catid=93&id=1253">
                                     <asp:Image
                                          ID="Image1" runat="server" width ="123" Height="88"/>
                                     </a> <asp:Label ID="user_name" runat="server" Text='<%#Eval("user_nickname") %>'></asp:Label></div>
                  
                       <h3 class="mb10"><a href="?m=content&c=index&a=show&catid=93&id=1253"><asp:Label ID="comment_title" runat="server"
                               Text='<%#Eval("comment_title") %>'></asp:Label>

</a></h3> 
                          <asp:Label ID="comment_content" runat="server" Text='<%#Eval("comment_content") %>'></asp:Label>
                          <p></p><p></p><p></p><p></p><p></p><p></p>                                            <p class="pt10">
                                                <asp:Label ID="Label1" runat="server" Text='<%#Eval("comment_time") %>'></asp:Label>					

<!--<a href="" class="share ml20">分享</a>-->
						<!-- Baidu Button BEGIN -->
			
						
						</p>
                  </div>
                  </li>
                  </ItemTemplate>
                  <LayoutTemplate>
                      <table runat="server">
                          <tr runat="server">
                              <td runat="server">
                                  <table ID="groupPlaceholderContainer" runat="server" border="1" 
                                      style="background-color: #FFFFFF;border-collapse: collapse;border-color: #999999;border-style:none;border-width:1px;font-family: Verdana, Arial, Helvetica, sans-serif;">
                                      <tr ID="groupPlaceholder" runat="server">
                                      </tr>
                                  </table>
                              </td>
                          </tr>
                          <tr runat="server">
                              <td runat="server" 
                                  style="text-align: center;background-color: #5D7B9D;font-family: Verdana, Arial, Helvetica, sans-serif;color: #FFFFFF">
                                  <asp:DataPager ID="DataPager1" runat="server" PageSize="12">
                                      <Fields>
                                          <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                              ShowLastPageButton="True" />
                                      </Fields>
                                  </asp:DataPager>
                              </td>
                          </tr>
                      </table>
                  </LayoutTemplate>
                  <SelectedItemTemplate>
                      <td runat="server" 
                          style="background-color: #E2DED6;font-weight: bold;color: #333333;">
                          comment_id:
                          <asp:Label ID="comment_idLabel" runat="server" 
                              Text='<%# Eval("comment_id") %>' />
                          <br />user_id:
                          <asp:Label ID="user_idLabel" runat="server" Text='<%# Eval("user_id") %>' />
                          <br />comment_title:
                          <asp:Label ID="comment_titleLabel" runat="server" 
                              Text='<%# Eval("comment_title") %>' />
                          <br />comment_content:
                          <asp:Label ID="comment_contentLabel" runat="server" 
                              Text='<%# Eval("comment_content") %>' />
                          <br />comment_time:
                          <asp:Label ID="comment_timeLabel" runat="server" 
                              Text='<%# Eval("comment_time") %>' />
                          <br />comment_praise:
                          <asp:Label ID="comment_praiseLabel" runat="server" 
                              Text='<%# Eval("comment_praise") %>' />
                          <br />comment_hate:
                          <asp:Label ID="comment_hateLabel" runat="server" 
                              Text='<%# Eval("comment_hate") %>' />
                          <br />Expr1:
                          <asp:Label ID="Expr1Label" runat="server" Text='<%# Eval("Expr1") %>' />
                          <br />user_image:
                          <asp:Label ID="user_imageLabel" runat="server" 
                              Text='<%# Eval("user_image") %>' />
                          <br />user_nickname:
                          <asp:Label ID="user_nicknameLabel" runat="server" 
                              Text='<%# Eval("user_nickname") %>' />
                          <br />
                      </td>
                  </SelectedItemTemplate>

              </asp:ListView>
              <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                  ConnectionString="<%$ ConnectionStrings:vikiConnectionString2 %>" 
                  SelectCommand="SELECT c.comment_id, c.user_id, c.comment_title, c.comment_content, c.comment_time, c.comment_praise, c.comment_hate, u.user_id AS Expr1,   u.user_image,u.user_nickname FROM Comment AS c INNER JOIN [User] AS u ON c.user_id = u.user_id">
              </asp:SqlDataSource>
          </ul>
                    
          <div class="h20"></div>  <div class="h20"></div>
       
         <div class="h20"></div>   <div class="h20"></div>
         &nbsp;</div>
        
  
<script type="text/javascript" src="../Styles/js/cui.js"></script>
  <div class="col_r">      
        <div class="left-menu login">
                    <dl>
                        <dt><p>① 免费水平测试</p><p>② 免费学习计划</p><p>③ 免费试听体验</p></dt>
                        <dd>
                          <form method="post" action="../index.php?m=user&c=index&a=register" id="myform" onsubmit="javascript:chkRegister(this);return false;">
                           <p><span class="e-mail"></span><input name="email" type="text" maxlength="30" id="email" class="inp" value="E-mail" onblur="if(!this.value){this.value=this.defaultValue;}" onfocus="if (this.value==this.defaultValue){value =''}" /></p>
                            <p><span class="pwd"></span><input name="password"  type="password" maxlength="30" id="password" class="inp" value="输入用户密码" onblur="if(!this.value){this.value='';}" onfocus="if (this.value==this.defaultValue){value =''}"/></p>
                           
                            <p><span class="phone"></span><input name="info[mobile]"  type="text" maxlength="30" id="mobile" class="inp" value="手机号码" onblur="if(!this.value){this.value=this.defaultValue;}" onfocus="if (this.value==this.defaultValue){value =''}"/></p>
							 <p><span class="name"></span><input name="tj_code"  type="text" maxlength="30" id="tj_code" class="inp" value="推荐人手机号/留空" onblur="if(!this.value){this.value=this.defaultValue;}" onfocus="if (this.value==this.defaultValue){value =''}"/></p>
                            <input type='hidden' name='dosubmit' value='1'/>
                            <p><input type="submit" name="submit" class="btn-login" value="" /></p>
                          </form>
                        </dd>
                    </dl>
          </div>
          <div class="h20"></div>
                    <div class="h20"></div>
           <div class="h20"></div>
           </div>
 
<div class="h30"></div>
</div>
</asp:Content>
